<?php
/**
 * @author Gideon Amissah<kuulmek@yahoo.com>
 * @access public
 * @version 
 */

?>
<div class="property-pane" >
   <div class="pane-header">
       Search For Property And Pay Bills
   </div>
   <?php
        echo $this->element('search');
   ?>  
</div>


<input type="hidden" id="search-url" value="<?php echo $this->Html->url(array('controller' => 'Property', 'action' => 'searchProperty')); ?>" />
<input type="hidden" id="pay_bill-url" value="<?php echo $this->Html->url(array('controller' => 'Account', 'action' => 'billsPayment')); ?>" />

<script type="text/javascript">
    /* when the page is loaded */
$(document).ready(function() {
    $("#search").focus();
    SearchObj.init($('#search-url').val(),349,function(param){
        location = $('#pay_bill-url').val()+'/'+param;
    });
});
</script>

